package fangzhiyi.work.tank;

/**
 * @author fangzhiyi
 * @version 1.0
 * @date 2025/3/20 17:04
 * @description 坦克大战游戏类
 */
public abstract class Tank {
    //属性
    public int attack;
    public int health;
    public int defense;

    public Tank(int attack, int health, int defense) {
        this.attack = attack;
        this.health = health;
        this.defense = defense;
    }

    public int getAttack() {
        return attack;
    }

    public int getHealth() {
        return health;
    }

    public int getDefense() {
        return defense;
    }

    public void setHealth(int health) {
        this.health = health;
    }

    //方法
    public abstract void shoot();

    public abstract void move();

    public abstract void death();
}
